@layout("/common/_container.html",{js:["/assets/common/module/ueditor/ueditor.config.js","/assets/common/module/ueditor/ueditor.all.js","/assets/modular/recy/wasteType/wasteType_edit.js","/assets/common/libs/rapid-validator/prototype_for_validation.js","/assets/common/libs/rapid-validator/validation_cn.js","/assets/common/libs/rapid-validator/tooltips.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">修改回收类别</span>
</div>

<div class="layui-container" style="">
    <form id="wasteTypeForm" lay-filter="wasteTypeForm" class="layui-form model-form" style="max-width: 700px;margin: 40px auto;">
        <input name="id" type="hidden" id="id"/>
        <div class='layui-form-item'>
            <div class="layui-inline">
                <label class="layui-form-label">类别名称</label>
                <div class="layui-input-block">
                    <input style="width:150px" id="typeName" name="typeName" placeholder="类别名称" type="text" class="layui-input   required" />
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">是否可回收</label>
                <div class="layui-input-block">
                    <#dictSelector theme="simple" code="recyclable" name="recyclable" id="recyclable" placeholder="请选择"/>
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">指令集</label>
                <div class="layui-input-block">
                    <input style="width:150px" id="commandSet" name="commandSet" placeholder="指令集" type="text" class="layui-input   required" />
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">图标</label>
                <div class="layui-input-block">
                    <input id="icon" name="icon" placeholder="图标" type="hidden" class="layui-input   " />
                    <button type="button" class="layui-btn" id="iconUpload">
                        <i class="layui-icon">&#xe67c;</i>上传图片
                    </button>
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">积分兑换比例</label>
                <div class="layui-input-block">
                    <input style="width:150px" id="typeDesc" name="typeDesc" placeholder="积分兑换比例" type="text" class="layui-input  required validate-number " />
                </div>
            </div>
        </div>
        <div class="layui-form-item text-right">
            <button class="layui-btn" lay-filter="btnSubmit" lay-submit>保存</button>
            <button class="layui-btn layui-btn-primary" type="button" ew-event="closeDialog" id="backupPage">返回</button>
        </div>
    </form>
</div>

@}